package com.vividstores.integration.mq;

import java.io.File;

import com.vividstores.integration.mq.MQFile;
import com.vividstores.integration.mq.MQFileBundle;
import com.vividstores.integration.mq.MQFileReceiverHandler;

public class MQSimpleFileReceiverHandler implements MQFileReceiverHandler {
	
	private String parentPath;
	
	public MQSimpleFileReceiverHandler(String parentPath) {
		this.parentPath = parentPath;
	}
	
	public String getParentPath() {
		return parentPath;
	}
	
	public void setParentPath(String parentPath) {
		this.parentPath = parentPath;
	}
	
	@Override
	public File getDestinationFile(MQFileBundle fileBundle, MQFile mqFile) {
		return new File(parentPath, mqFile.getName());
	}
	
	
}
